using System.Security.Permissions;
using System.Windows.Forms;

namespace VSPackage1
{
    /// <summary>
    /// Summary description for ToolWindow_Test_1Control.
    /// </summary>
    public partial class ToolWindow_Test_1Control : UserControl
    {
        public ToolWindow_Test_1Control()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Let this control process the mnemonics.
        /// </summary>
        [UIPermission(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)]
        protected override bool ProcessDialogChar(char charCode)
        {
            // If we're the top-level form or control, we need to do the mnemonic handling
            if (charCode != ' ' && ProcessMnemonic(charCode))
            {
                return true;
            }
            return base.ProcessDialogChar(charCode);
        }

        /// <summary>
        /// Enable the IME status handling for this control.
        /// </summary>
        protected override bool CanEnableIme
        {
            get
            {
                return true;
            }
        }

        //Aaron Added Blow Attribute
        [System.Diagnostics.DebuggerStepThrough()]
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1300:SpecifyMessageBoxOptions")]
        private void button1_Click(object sender, System.EventArgs e)
        {
            //ClassLibrary2.Form1 Test = new ClassLibrary2.Form1();

            try
            {
                BaseProject.Form1 Test = new BaseProject.Form1(Aaron1.Utilities.Package);

                Test.ShowDialog();
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
    }
}